﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Consul;

namespace Extensions.Consul;

public interface IConsulServerManager
{
    Task<string> GetServerAddressAsync(string serviceName);

    Task<AgentService> GetAgentServiceAsync(string serviceName);

    Task<IList<AgentService>> GetServerListAsync(string serviceName);
    
}